/*    
    OpenMheg - A free MHEG-5 library
    Copyright (C) 2008 Dharmesh Malam

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

using System;
using System.Collections.Generic;
using System.Text;
using Core.Model.Data.Generics;

namespace Core.Model.Actions.Elementary
{
public class DrawArc : ElementaryAction
{
    private GenericInteger x;

    public GenericInteger X
    {
        get { return x; }
        set { x = value; }
    }
    private GenericInteger y;

    public GenericInteger Y
    {
        get { return y; }
        set { y = value; }
    }
    private GenericInteger width;

    public GenericInteger Width
    {
        get { return width; }
        set { width = value; }
    }
    private GenericInteger height;

    public GenericInteger Height
    {
        get { return height; }
        set { height = value; }
    }
    private GenericInteger startAngle;

    public GenericInteger StartAngle
    {
        get { return startAngle; }
        set { startAngle = value; }
    }
    private GenericInteger arcAngle;

    public GenericInteger ArcAngle
    {
        get { return arcAngle; }
        set { arcAngle = value; }
    }

  internal override void Run() 
  {
    ((DynamicLineArt)Target).DrawArc(x.Value, y.Value, width.Value, height.Value, startAngle.Value, arcAngle.Value);
  }
}
}
